﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<%@ Register Src="~/Manage/CmsMessageBox.ascx" TagPrefix="cms" TagName="MessageBox" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户登录</title>
    <script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
    <script src="js/Common.js" type="text/javascript"></script>
    <style type="text/css">
        body
        {
            background-color: #99cc66;
        }
        
        img
        {
            margin: 0px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <script type="text/javascript">
            $(document).ready(function () {
                $('input#<%=Submit.ClientID %>').click(function () {
                    var ds = [{ 'Controller': 'input#<%=Username.ClientID %>',
                        'Type': 'R', 'Clear': true, 'Focus': true,
                        'ErrorMessage': '请输入用户名。'
                    }, { 'Controller': 'input#<%=Password.ClientID %>',
                        'Type': 'R', 'Clear': true, 'Focus': true,
                        'ErrorMessage': '请输入密码。'
                    }];

                    return Cms_ValidateForm(ds);
                });

                $('input#<%=Reset.ClientID %>').click(function () {
                    $('input#<%=Username.ClientID %>').val('');
                    $('input#<%=Password.ClientID %>').val('');

                    $('input#<%=Username.ClientID %>').focus();
                });
            });
        </script>
        <table cellpadding="0" cellspacing="0" style="width:100%; height: 100%;">
            <tr>
                <td align="center" valign="middle">
                    <table cellpadding="0" cellspacing="0">
                        <tr>
                            <td colspan="2"><asp:Image ID="LoginHeader" runat="server" SkinID="LoginHeader" /></td>
                        </tr>
                        <tr>
                            <td><asp:Image ID="LoginIcon" runat="server" SkinID="LoginIcon" /></td>
                            <td class="LoginInfoBackground">
                                <table cellpadding="0" cellspacing="0" border="0" style="width:262px">
                                    <tr style="height: 40px;">
                                        <td align="right">用户名：</td>
                                        <td>
                                            <asp:TextBox ID="Username" runat="server" Width="150px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr style="height: 40px;">
                                        <td align="right">密&nbsp;&nbsp;&nbsp;码：</td>
                                        <td>
                                            <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr style="height: 40px;">
                                        <td colspan="2">
                                            <asp:Button ID="Submit" runat="server" Text="提交" onclick="Submit_Click" />
                                            <asp:Button ID="Reset" runat="server" Text="重置" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2"><asp:Image ID="LoginBottom" runat="server" SkinID="LoginBottom" /></td>
                        </tr>
                        <tr>
                            <td colspan="2"><asp:Image ID="LoginReflection" runat="server" SkinID="LoginReflection" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <cms:MessageBox ID="MessageBox" runat="server" />
    </form>
</body>
</html>
